package com.school.campus.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.school.common.annotation.Excel;
import com.school.common.core.domain.BaseEntity;

/**
 * 自习室信息对象 study_room
 *
 * @author wwj
 * @date 2025-10-31
 */
public class StudyRoom extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String imageUrl;

    /**
     * 可容纳总人数
     */
    @Excel(name = "可容纳总人数")
    private Long capacity;

    /**
     * 当前人数
     */
    @Excel(name = "当前人数")
    private Long currentPeople;

    /**
     * 开放时段
     */
    @Excel(name = "开放时段")
    private String openTime;

    /**
     * 状态：0-闭门中，1-开放中
     */
    @Excel(name = "状态：0-闭门中，1-开放中")
    private Long status;

    /**
     * 已预约人数
     */
    private Long reservedPeople;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setCapacity(Long capacity) {
        this.capacity = capacity;
    }

    public Long getCapacity() {
        return capacity;
    }

    public void setCurrentPeople(Long currentPeople) {
        this.currentPeople = currentPeople;
    }

    public Long getCurrentPeople() {
        return currentPeople;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setReservedPeople(Long reservedPeople) {
        this.reservedPeople = reservedPeople;
    }

    public Long getReservedPeople() {
        return reservedPeople;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("imageUrl", getImageUrl())
                .append("capacity", getCapacity())
                .append("currentPeople", getCurrentPeople())
                .append("openTime", getOpenTime())
                .append("status", getStatus())
                .append("reservedPeople", getReservedPeople())
                .toString();
    }
}
